<?php 
    mb_internal_encoding(“gb2312″);  // 这里的gb2312是你网站原来的编码   
    mb_http_output(“HTML-ENTITIES”);   
    ob_start(‘mb_output_handler’);  
    include './db/db.php'; 
?>
<!DOCTYPE html>
<html>
    
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=GBK" />
        <title>测试</title>
        
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
    
   
